package smetana.modules.business;

import smetana.domain.join.DocReport;
import smetana.domain.raw.Doc;

import java.util.List;

/**
 * @author dmitry.mamonov
 */
public interface BusinessDoc {
    //doc.
    Doc newDoc();
    Doc findDocById(Integer id);
    void saveDoc(Doc doc);
    void deleteDoc(Doc doc);
    java.util.List<Doc> listDocs();
    java.util.List<Doc> listDocsWithDeleted();

    //doc queries.
    DocReport findDocReportById(Integer id);
    java.util.List<DocReport> listDocReports();
    org.apache.pivot.collections.List<DocReport> pivotListDocReports();
}
